package top.tangyh.lamp.care.vo.result;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import top.tangyh.basic.base.entity.Entity;

import java.time.LocalDateTime;
import java.util.Date;

import static top.tangyh.lamp.model.constant.Condition.LIKE;

/**
 * <p>
 * vo
 * 管道记录返回对象
 * </p>
 *
 * @author zqb
 * @since
 */
@Data
@Schema(description = "管道记录返回对象")
public class PipeUseRecordVO extends Entity<Long> {

 

    @Schema(description = "导管类型id",example = "1")
    private String ppTypeId;

    @Schema(description = "导管类型名称")
    private String ppTypeName;

    @Schema(description ="病人健康号")
    private String patientIdent;

    @Schema(description ="状态(1、使用中  2、已拔管)",example = "1")
    private Integer state;

    @Schema(description ="json数据")
    private String jsonData;

    @Schema(description ="管道名称")
    private String ppName;
    /**
     * 管道名称
     */
    @Schema(description = "管道名称code")
    private String ppNameCode;

    @Schema(description ="置管人")
    private String userId;

    @Schema(description = "有效期（使用天数）",example = "1")
    private Integer validity;

//    @Schema(description ="拔管原因")
//    private String reason;

    @Schema(description ="拔管原因")
    private String reasonName;

    @Schema(description ="拔管原因")
    private String reasonCode;

    @Schema(description = "是否非计划性拔管1、是  0、否",example = "1")
    private Integer isPlan;

    @Schema(description ="拔管人")
    private String pullUserId;

    @Schema(description ="换管人")
    private String changeUserId;


    @Schema(description ="换管地点")
    private String changePlaceName;

    @Schema(description ="换管地点code")
    private String changePlaceCode;

    @Schema(description ="换管地点code")
    private String changeAddressCode;

    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm",timezone = "GMT+8")
    @Schema(description ="拔管时间")
    private Date pullTime;



    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm",timezone = "GMT+8")
    @Schema(description ="换管时间")
    private LocalDateTime changeTime;

    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm",timezone = "GMT+8")
    @Schema(description ="置入日期")
    private LocalDateTime imbedTime;

    @Schema(description ="置管人名字")
    private String userName;

    @Schema(description ="拔管人名字")
    private String pullUserName;

    @Schema(description ="换管人名字")
    private String changeUserName;

    @Schema(description ="插管地点名称")
    private  String intubationName;

    @Schema(description ="插管地点code")
    private  String intubationCode;

    /**
     * 管道观察记录数量
     */
    @Schema(description = "管道观察记录数量",example = "1")
    private Integer catheterObsCount;

    /**
     * 已使用天数
     */
    @Schema(description = "已使用天数",example = "1")
    private Integer usedDay;

    /**
     * 提醒天数
     */
    @Schema(description = "提醒天数",example = "1")
    private Integer reminderDay;

    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm")
    @Schema(description ="插管时间")
    private Date intubatioTime;

    @Schema(description ="型号名称-来自数据字典")
    private String typeName;

    @Schema(description ="型号数据字典code")
    private String typeCode;


    @Schema(description ="插管部位-来自数据字典")
    private  String intubationSiteName;

    @Schema(description ="插管部位code")
    private  String intubationSiteCode;


    @Schema(description ="住院号码")
    private String hospitalNumber;
}
